#pragma once
#include "Card.h"
#include "Account.h"
#include "Transaction.h"

class CDatabaseAccess
{
public:
    CDatabaseAccess(void);
    ~CDatabaseAccess(void);
    bool ReadFileCard(CCard& g_Card, const char *cFileName);
    bool ReadFileAccount(CAccount& objAcc, const char *cFileName);
	int ReadFileTransaction(CTransaction &objTransaction, const char *cFileName);
    bool WriteFileCard(CCard& g_Card, const char *cFileName);
    bool WriteFileAccount(CAccount& objAcc, const char *cFileName, const char *cNewFile); 
    bool WriteFileTransaction(CTransaction& objTrans, const char *cFileName);
    long ReadFileATM(const char *cFileName);
    void WriteFileATM(const char *cFileName, long lATMMoney);
};
